package org.qiyu.live.user.provider;



import jakarta.annotation.Resource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.qiyu.live.user.interfaces.dto.UserDTO;
import org.qiyu.live.user.provider.service.IUserService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * 用户服务中台启动类
 */
@SpringBootApplication
//@EnableDiscoveryClient
//@EnableDubbo
public class UserProviderApplication  {

    @Resource
    IUserService userService;

    public static void main(String[] args) {
        SpringApplication.run(UserProviderApplication.class,args);
    }


//    @Override
//    public void run(String... args) throws Exception {
//        List<Long> list = Arrays.asList(10001L, 10002L);
//        Map<Long, UserDTO> userDTOMap = userService.batchQueryUserInfo(list);
//        System.out.println(userDTOMap);
//    }
}